package org.bigdata.framework.core.model;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author dal.anhuifeng
 * @since 2017-06-22
 */
@TableName("pay_order")
public class PayOrder implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户名
	 */
	@TableField(value="member_username")
	private String memberUsername;

	/**
	 * 用户类型（0-个人 1-机构）
	 */
	@TableField(value="member_type")
	private Integer memberType;

	/**
	 * 支付方式（we_chat、alipay、union_pay、balance）
	 */
	@TableField(value="pay_way")
	private String payWay;

	/**
	 * 状态（0-支付成功 1-待支付）
	 */
	private Integer status;

	/**
	 * 资源优惠/折扣总金额
	 */
	@TableField(value="pay_preferential")
	private BigDecimal payPreferential;

	/**
	 * 实际支付金额（单价x数量减去折扣x数量）
	 */
	@TableField(value="pay_money")
	private BigDecimal payMoney;

	/**
	 * 订单日期
	 */
	@TableField(value="create_time")
	private String createTime;

	/**
	 * 创建ip地址
	 */
	@TableField(value="create_ip_address")
	private String createIpAddress;

	/**
	 * 订单号（分布式ID号）
	 */
	@TableField(value="order_number")
	private String orderNumber;

	/**
	 * 总金额
	 */
	@TableField(value="total_money")
	private BigDecimal totalMoney;



	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getMemberUsername() {
		return memberUsername;
	}

	public void setMemberUsername(String memberUsername) {
		this.memberUsername = memberUsername;
	}

	public Integer getMemberType() {
		return memberType;
	}

	public void setMemberType(Integer memberType) {
		this.memberType = memberType;
	}

	public String getPayWay() {
		return payWay;
	}

	public void setPayWay(String payWay) {
		this.payWay = payWay;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public BigDecimal getPayPreferential() {
		return payPreferential;
	}

	public void setPayPreferential(BigDecimal payPreferential) {
		this.payPreferential = payPreferential;
	}

	public BigDecimal getPayMoney() {
		return payMoney;
	}

	public void setPayMoney(BigDecimal payMoney) {
		this.payMoney = payMoney;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getCreateIpAddress() {
		return createIpAddress;
	}

	public void setCreateIpAddress(String createIpAddress) {
		this.createIpAddress = createIpAddress;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public BigDecimal getTotalMoney() {
		return totalMoney;
	}

	public void setTotalMoney(BigDecimal totalMoney) {
		this.totalMoney = totalMoney;
	}

}
